path = "/home/ubuntu/data_collect"

content = {
    "station_name": "电站名称",
    "station_no": "电站编号",
    "if_local": "是否在电站现场",
    "lon": "经度( °)",
    "lat": "纬度( °)",
    "station_type": "电站类型",
    "station_pics": "电站全景照片",
    "capacity_modules": "电站组件总容量(MW)",
    "capacity_inverters": "电站逆变器总容量(MW)",
    "voltage_gridC": "并网电压",
    "descrip_gridC": "电站并网情况",
    "time_first_gridC": "首次并网时间(yyyy-MM-dd)",
    "time_all_gridC": "全容量并网时间(yyyy-MM-dd)",
    "distance_1": "集电线路平均距离(m)",
    "position_meter": "结算关口表安装位置",
    "length_outline": "外线长度(km)",
    "om_dpt": "运维单位",
    "type_transformer": "主变规格型号",
    "type_transformer_unit": "电站箱变单元配置方式种类",
    "type_box_transformer": "箱变规格型号",
    "total_box_transformer": "箱变台数",
    "type_inverter": "逆变器类型",
    "descrip_inverter": "逆变器的规格型号",
    "total_inverter": "逆变器台数",

    "type_module": "组件类型",
    "type_ground": "组件下方环境类型",
    "descrip_module": "组件型号规格",
    "capacity_module": "组件容量(MW)",
    "direction_module": "组件安装方向",
    "type_rack": "组件支架类型",
    "azimuth_0": "组件方位角( °) \n朝向正南为0°，朝西为正，朝东为负",
    "tilt_0": "组件倾角档位",
    "distance_row_0": "前后排支架中心间距(m)",
    "height_module_0": "组件下沿离地高度",
    "azimuth_1": "组件方位角( °) \n朝向正南为0°，朝西为正，朝东为负",
    "tilt_1": "组件倾角档位( °)",
    "freq_modify_1": "年调节次数",
    "distance_row_1": "前后排支架中心间距(m)",
    "height_module_1": "不同倾角时组件下沿离地高度(m)",
    "azimuth_2": "转轴方位角( °) \n朝向正南为0°，朝西为正，朝东为负",
    "range_modify_2": "转角调节范围( °)",
    "if_inv_track_2": "是否带逆跟踪",
    "distance_column_2": "左右排支架中心间距(m)",
    "height_module_2": "转轴离地高度(m)",
    "azimuth_3": "转轴方位角( °) \n朝向正南为0°，朝西为正，朝东为负",
    "tilt_3": "转轴与水平面倾角( °)",
    "range_modify_3": "转角调节范围( °)",
    "if_inv_track_3": "是否带逆跟踪",
    "distance_column_3": "左右排支架中心支架(m)",
    "range_modify_tilt_4": "倾角调节范围( °)",
    "range_modify_azimuth_4": "方位角调节范围( °)",
    "if_inv_track_4": "是否带逆跟踪",
    "num_modules_per_subarray": "每个组串组件个数",
    "num_rows_per_rack": "每个支架组件排数",
    "type_module_subarray_connect": "组串中组件接线方式",
    "condition_module_pollute": "组件污染情况",
    "condition_module_shading": "组件物体遮挡情况",
    "condition_module_azimuth": "组件朝向角度一致性",
    "power_limit_past": "历年限电电量（万kWh）",
    "power_fault_past": "历年站内故障损失电量（万kWh）",
    "power_stop_past": "历年计划停运损失电量（万kWh）",
    "power_trouble_past": "历年受累损失电量（万kWh）",
    "num_euh": "历年等效利用小时数",
    "total_person1": "站长",
    "total_person2": "值长",
    "total_person3": "工程师",
    "total_person4": "值班员",
    "total_person5": "厨师",
    "total_person6": "保洁",
    "total_person7": "司机",
    "type_mobile": "汽车型号",
    "total_mobile": "汽车数量",
    "type_mobile1": "三轮车型号",
    "total_mobile1": "三轮车数量",
    "type_ship": "船只型号",
    "total_ship": "船只数量",
    "transp_pics": "交通工具照片",
    "descrip_om": "运维单位承担备品备件的标准 \n（XX元/以下或XX万元以内）",
    "freq_clean": "电站清洗次数",
    "cost_clean": "电站清洗费用",
    "freq_weed": "电站除草次数",
    "cost_weed": "电站除草费用",
    "freq_snow": "电站除雪次数",
    "cost_snow": "电站除雪费用",
    "condition_1": "运维单位是否承担下网电费",
    "cost_condition_1": "运维单位下网电费承担每年费用 \n金额（万元）",
    "condition_2": "运维单位承担调度数据网维护每年费用",
    "cost_condition_2": "运维单位承担调度数据网维护每年费用 \n金额（万元）",
    "condition_3": "运维单位是否承担光功率预测",
    "cost_condition_3": "运维单位承担光功率预测每年费用 \n金额（万元）",
    "condition_4": "运维单位是否承担试验检验",
    "cost_condition_4": "运维单位承担试验检验每年费用 \n金额（万元）"
}

choice = {
    "if_local": ["是", "否"],
    "station_type": ["地面电站", "山地电站", "水面漂浮电站", "水面打桩电站", "彩钢瓦屋顶电站", "水泥屋顶电站", "车棚"],
    "voltage_gridC": ["400V", "6kV", "10kV", "35kV", "110kV", "220kV"],
    "descrip_gridC": ["未并网", "已并网，未全容量并网", "已全容量并网，全容量并网时间未满一年", "全容量并网时间满一年"],
    "position_meter": ["内侧", "对侧"],
    "condition_1": ["否", "是"],
    "condition_2": ["否", "是"],
    "condition_3": ["否", "是"],
    "condition_4": ["否", "是"],
    "type_transformer_unit": ["1种", "2种", "3种", "4种", "5种"],
    "type_inverter": ["组串式", "集中式", "集散式", "箱逆变一体机"],
    "type_module": ["单晶单面N型", "单晶双面N型", "单晶单面P型", "单晶双面P型", "多晶单面N型", "多晶双面N型", "多晶单面P型", "多晶双面P型", "薄膜组件"],
    "type_ground": ["水面", "草地", "雪地", "沥青", "水泥", "砂石"],
    "direction_module": ["横放", "竖放"],
    "type_rack": ["固定支架", "固定可调支架", "平单轴跟踪支架", "斜单轴跟踪支架", "双轴跟踪支架"],
    "type_module_subarray_connect": ["C字型", "一字型"],
    "condition_module_pollute": ["无", "轻微", "一般", "严重"],
    "condition_module_shading": ["无", "轻微", "一般", "严重"],
    "condition_module_azimuth": ["好", "中", "差"],
    "if_inv_track_2": ["否", "是"],
    "if_inv_track_3": ["否", "是"],
    "if_inv_track_4": ["否", "是"]
}

var_idx = [[[1, 'station_name'], [12, 'distance_1'], [57, 'descrip_om']],
           [[2, 'if_local'], [5, 'station_type'], [8, 'voltage_gridC'], [9, 'descrip_gridC'], [13, 'position_meter'],
            [17, 'type_transformer_unit'], [62, 'condition_1'], [63, 'condition_2'], [64, 'condition_3'],
            [65, 'condition_4']],
           [[10, 0, 'time_first_gridC'], [11, 0, 'time_all_gridC'], [40, 0, 'power_limit_past'],
            [41, 0, 'power_fault_past'],
            [42, 0, 'power_stop_past'], [43, 0, 'power_trouble_past'], [44, 0, 'num_euh'], [14, 1, 'length_outline'],
            [62, 2, 'cost_condition_1'], [63, 2, 'cost_condition_2'], [64, 2, 'cost_condition_3'],
            [65, 2, 'cost_condition_4']],
           [[46, 'total_person1'], [47, 'total_person2'], [48, 'total_person3'], [49, 'total_person4'],
            [50, 'total_person5'], [51, 'total_person6'], [52, 'total_person7'], [3, 'lon'], [4, 'lat'],
            [6, 'capacity_modules'], [7, 'capacity_inverters'], [15, 'om_dpt'], [16, 'type_transformer']],
           [[54, 2, 'type_mobile'], [54, 3, 'total_mobile'], [55, 2, 'type_mobile1'], [55, 3, 'total_mobile1'],
            [56, 2, 'type_ship'], [56, 3, 'total_ship'], [59, 2, 'freq_clean'], [59, 3, 'cost_clean'],
            [60, 2, 'freq_weed'], [60, 3, 'cost_weed'], [61, 2, 'freq_snow'], [61, 3, 'cost_snow']],
           [[18, 'type_box_transformer'], [19, 'total_box_transformer'], [20, 'type_inverter'],
            [21, 'descrip_inverter'], [22, 'total_inverter'], [23, 'type_module'], [24, 'type_ground'],
            [25, 'descrip_module'], [26, 'capacity_module'], [27, 'direction_module'], [28, 'type_rack'],
            [34, 'num_modules_per_subarray'], [35, 'num_rows_per_rack'], [36, 'type_module_subarray_connect'],
            [37, 'condition_module_pollute'], [38, 'condition_module_shading'], [39, 'condition_module_azimuth']],
           [['azimuth_0', 'tilt_0', 'distance_row_0', 'height_module_0'],
            ['azimuth_1', 'tilt_1', 'freq_modify_1', 'distance_row_1', 'height_module_1'],
            ['azimuth_2', 'range_modify_2', 'if_inv_track_2', 'distance_column_2', 'height_module_2'],
            ['azimuth_3', 'tilt_3', 'range_modify_3', 'if_inv_track_3', 'distance_column_3'],
            ['range_modify_tilt_4', 'range_modify_azimuth_4', 'if_inv_track_4']]
           ]

